package com.vhall.component.entity.account;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * @author dongsong
 */
@Data
@TableName("role_menues")
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "RoleMenuesEntity对象", description = "角色-菜单关联表")
public class RoleMenuesEntity implements Serializable {


    private static final long serialVersionUID = 6915899783054434169L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "角色ID")
    @TableField("role_id")
    private Integer roleId;

    @ApiModelProperty(value = "菜单ID")
    @TableField("menu_id")
    private Integer menuId;

    @TableField("created_at")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createdAt;

    @TableField("updated_at")
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updatedAt;

    @ApiModelProperty(value = "删除时间")
    @TableField("deleted_at")
    private LocalDateTime deletedAt;
}
